 <%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
<head>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/common.js"></script>
<%@ include file="/commons/commonList.jsp"%>
<script type="text/javascript">
	var currentID = null;
	function edit(){
		if(currentID == null || currentID ==""){
			Alert("请选择要修改的记录");
			return;
		}
		parent.openRenovateChargeItemEdit(currentID);
	}
	function openDelete(){
		if(currentID == null || currentID ==""){
			Alert("请选择要删除的记录");
			return;
		}
		AskConfirm("您确认删除此条记录吗?","main","openRenovateCharegeItemDelete");
	}

	function init(){
		parent.marker = 1;
	}
</script>
</head>
<body onload="init();">
<div style="overflow:auto; height:290px;">

  <ec:ceTable items="renovateChargeItemConfigs"
	action="${ctx}/system_registerItemAction.do?method=initList"
	var="chargeItem"
	view="pmsview"
	styleClass="gridData2"
	rowsDisplayed="10" >
	<ec:ceRow styleClass="grid"
		onclick="currentID=${chargeItem.keyword}"
		onContextMenu="return ShowContextMenu(event,'quick_rightmenu');">
		<ec:ceColumn headerCell="pmsHeadrCell" title="交易码" property="bizCode" sortable="false" width="5%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="描述" property="description" sortable="false" width="10%"/>
		<ec:ceColumn headerCell="pmsHeadrCell" title="收费项目名称" property="itemName" sortable="false" width="6%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="收费对象" property="chargeObject" sortable="false" width="6%">
			<c:choose>
				<c:when test="${chargeItem.chargeObject eq '001'}">业 主</c:when>
				<c:when test="${chargeItem.chargeObject eq '002'}">装修公司</c:when>
				<c:when test="${chargeItem.chargeObject eq '003'}">装修工人</c:when>
				<c:when test="${chargeItem.chargeObject eq '004'}">装修现场负责人</c:when>
			</c:choose>
		</ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="计费模式" property="chargeMode" sortable="false" width="6%">
			<c:choose>
				<c:when test="${chargeItem.chargeMode eq '001'}">按固定金额计费</c:when>
				<c:when test="${chargeItem.chargeMode eq '002'}">按装修面积计费</c:when>
			</c:choose>
		</ec:ceColumn>
		<ec:ceColumn headerCell="pmsHeadrCell" title="收费标准" property="price" sortable="false" width="6%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="使用状态" property="state" sortable="false" width="6%">
			<c:choose>
				<c:when test="${chargeItem.state eq '001'}">正常</c:when>
				<c:when test="${chargeItem.state eq '002'}">停用</c:when>
			</c:choose>
		</ec:ceColumn>
	</ec:ceRow>
</ec:ceTable>
</div>
<!--------------menu02------------------------->
<div id="quick_rightmenu" style="display:none;" oncontextmenu="return false" class="quick_rightmenu">
  <table width="100%" border="0" cellpadding="1" cellspacing="0" class="grid_quickMenu_bg">
    <tr>
      <td><table width="100%" border="0" cellpadding="2" cellspacing="0">
          <tr>
          <td class="quickMenu_toolbarico">
          	<a href="#"  onClick="parent.openRenovateChargeItemAdd();" onFocus="this.blur()">
          		<img src="${ctx}/images/ico_newfile.gif" alt="" width="16" height="16" border="0" align="absbottom" />
          			&nbsp;新 建
          	</a>
          	</td>
          </tr>

		  <tr><td class="quickMenu_toolbarico">
		  	<a href="#"   onClick="edit();" onFocus="this.blur()">
		  		<img src="${ctx}/images/ico_amend.gif" alt="" width="16" height="16" border="0" align="absbottom" />
		  		&nbsp;修 改
		  	</a></td> </tr>
        <tr>
          <td class="quickMenu_toolbarico">
          	<a href="#" onClick="openDelete();" onFocus="this.blur()">
          		<img src="${ctx}/images/ico_delete.gif" alt="" width="16" height="16" border="0" align="absbottom" />
          	&nbsp;删 除</a></td>
          </tr>
      </table></td>
    </tr>
  </table>
</div>
</body>
</html>